//
//  FilterTableViewCell.m
//  HAODE
//
//  Created by LiYinDi on 16/5/25.
//  Copyright © 2016年 reabam.com. All rights reserved.
//

#import "FilterTableViewCell.h"

@implementation FilterTableViewCell

- (void)awakeFromNib {
    // Initialization code
    [_indicatorImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.mas_right).with.offset(-10);
        make.height.equalTo(@30);
        make.centerY.equalTo(self.mas_centerY);
        make.width.equalTo(@30);
    }];

    [_typeNameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.mas_left).with.offset(15);
        make.height.equalTo(@21);
        make.centerY.equalTo(self.mas_centerY);
        make.right.equalTo(_itemNameLabel.mas_left);
    }];
    [_itemNameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(_indicatorImageView.mas_left);
        
        make.centerY.equalTo(self.mas_centerY);
        make.left.equalTo(_typeNameLabel.mas_right);
    }];
    
    [_lineLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.mas_left).with.offset(15);
        make.height.equalTo(@0.5) ;
        make.bottom.equalTo(self.mas_bottom).with.offset(-1);
        make.right.equalTo(self.mas_right).with.offset(-15);
    }];

}
-(void)setModel:(FilterFirstLevelModel *)model
{
    _typeNameLabel.text=model.typeName;
//    _itemNameLabel.text=model.itemName;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
